package com.hassean.we.model.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author yajun
 * @since 2019-07-01
 */
@TableName("ipphone_recharge")
public class IpphoneRecharge extends Model<IpphoneRecharge> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "recharge_id", type = IdType.AUTO)
    private Long rechargeId;
    /**
     * 用户ID
     */
    @TableField("user_id")
    private Long userId;
    /**
     * 操作人
     */
    private Long performer;
    /**
     * 人民币单位
     */
    private BigDecimal rmb;
    /**
     * 美元单位
     */
    @TableField("us_dollar")
    private BigDecimal usDollar;
    /**
     * 美元单位
     */
    @TableField("sec_dollar")
    private BigDecimal secDollar;
    /**
     * 默认0，1回退
     */
    private Integer state;
    /**
     * 添加时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+0")
    @TableField("add_time")
    private Date addTime;
    /**
     * 修改时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+0")
    @TableField("update_time")
    private Date updateTime;
    /**
     * 预留状态
     */
    private Long status;
    /**
     * 预留数字
     */
    private String temp;
    /**
     * 备注
     */
    private String remark;
    /**
     * 预留文本
     */
    @TableField("advance_text")
    private String advanceText;
    /**
     * 预留时间
     */
    @TableField("advance_date")
    private Date advanceDate;
    /**
     * 1删除
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 充值金额
     */
    private BigDecimal fee;
    /**
     * 支付来源
     */
    private Integer resouce;
    /**
     * 是pc还是app
     */
    private Integer pcOrApp;

    private String orderNo;

    private Integer type;

    public Long getRechargeId() {
        return rechargeId;
    }

    public void setRechargeId(Long rechargeId) {
        this.rechargeId = rechargeId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPerformer() {
        return performer;
    }

    public void setPerformer(Long performer) {
        this.performer = performer;
    }

    public BigDecimal getRmb() {
        return rmb;
    }

    public void setRmb(BigDecimal rmb) {
        this.rmb = rmb;
    }

    public BigDecimal getUsDollar() {
        return usDollar;
    }

    public void setUsDollar(BigDecimal usDollar) {
        this.usDollar = usDollar;
    }

    public BigDecimal getSecDollar() {
        return secDollar;
    }

    public void setSecDollar(BigDecimal secDollar) {
        this.secDollar = secDollar;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getStatus() {
        return status;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public String getTemp() {
        return temp;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getAdvanceText() {
        return advanceText;
    }

    public void setAdvanceText(String advanceText) {
        this.advanceText = advanceText;
    }

    public Date getAdvanceDate() {
        return advanceDate;
    }

    public void setAdvanceDate(Date advanceDate) {
        this.advanceDate = advanceDate;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public BigDecimal getFee() {
        return fee;
    }

    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    public Integer getResouce() {
        return resouce;
    }

    public void setResouce(Integer resouce) {
        this.resouce = resouce;
    }

    public Integer getPcOrApp() {
        return pcOrApp;
    }

    public void setPcOrApp(Integer pcOrApp) {
        this.pcOrApp = pcOrApp;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    @Override
    protected Serializable pkVal() {
        return this.rechargeId;
    }

    @Override
    public String toString() {
        return "IpphoneRecharge{" +
                ", rechargeId=" + rechargeId +
                ", userId=" + userId +
                ", performer=" + performer +
                ", rmb=" + rmb +
                ", usDollar=" + usDollar +
                ", secDollar=" + secDollar +
                ", state=" + state +
                ", addTime=" + addTime +
                ", updateTime=" + updateTime +
                ", status=" + status +
                ", temp=" + temp +
                ", remark=" + remark +
                ", advanceText=" + advanceText +
                ", advanceDate=" + advanceDate +
                ", delFlag=" + delFlag +
                ", fee=" + fee +
                ", resouce=" + resouce +
                ", pcOrApp=" + pcOrApp +
                ", orderNo=" + orderNo +
                ", type=" + type +
                "}";
    }
}
